package com.blueocean_health.care.management.domain.dto;

import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

public class RefundPayDetailsDto {
private String	serviceId;  // 关联订单明细ID
	private Date	beginTime; // 开始时间
	private Date endTime; //结束时间
	private Double day;// 多少天
	private Double hour;// 多小时
	private Double actualDayPrice;// 实际日单价
	private Double fund;// 实际消费费用/未消费费用
	private Boolean isUse;// 是否已消费
	
	public Double getHour() {
		return hour;
	}
	public void setHour(Double hour) {
		this.hour = hour;
	}
	public Boolean getIsUse() {
		return isUse;
	}
	public void setIsUse(Boolean isUse) {
		this.isUse = isUse;
	}
	public String getServiceId() {
		return serviceId;
	}
	public void setServiceId(String serviceId) {
		this.serviceId = serviceId;
	}
	 @JSONField(format = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginTime() {
		return beginTime;
	}
	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	 @JSONField(format = "yyyy-MM-dd HH:mm:ss")
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	
	public Double getDay() {
		return day;
	}
	public void setDay(Double day) {
		this.day = day;
	}
	public Double getActualDayPrice() {
		return actualDayPrice;
	}
	public void setActualDayPrice(Double actualDayPrice) {
		this.actualDayPrice = actualDayPrice;
	}
	public Double getFund() {
		if(null!=fund){
		BigDecimal   b   =   new   BigDecimal(fund);  
		return   b.setScale(2,   BigDecimal.ROUND_HALF_UP).doubleValue();
		}
		else{
			return null;
		}
		
	}
	public void setFund(Double fund) {
		this.fund = fund;
	}

	
	
}
